#include<iostream>
using namespace std;


void func1(int* arr,int len)
{
	for (int a = 0; a < len - 1; a++)
	{
		for (int b = 0; b <len-1; b++)
		{
			if(arr[b]>arr[b+1])
				{
					int temp=arr[b];
					arr[b] = arr[b + 1];
					arr[b + 1] = temp;


				}
		}
	}


}

void func2(int* arr, int len)
{
	for (int i = 0; i < 10; i++)
	{
		cout << arr[i] << endl;

	}

}


int main()
{
	int arr[10] = { 1,3,2,5,4,7,6,8,9,10 };
	int len = sizeof(arr) / sizeof(arr[0]);
	func1(arr, len);
	func2(arr, len);

	system("pause");
	return 0;
}